package com.flurry.android;

import com.flurry.android.caching.ObjectData;
import org.json.JSONException;
import org.json.JSONObject;

final class ev
  implements Runnable
{
  private AppCloudResponseHandler cP = null;
  private ObjectData gr = null;

  public ev(ObjectData paramObjectData, AppCloudResponseHandler paramAppCloudResponseHandler)
  {
    this.gr = paramObjectData;
    this.cP = paramAppCloudResponseHandler;
  }

  public final void run()
  {
    if (FlurryAppCloud.D().getPendingData().x(this.gr.getId()))
      FlurryAppCloud.D().getPendingData().getObjectById(this.gr.getId());
    while (FlurryAppCloud.D().checkIfDeleted(this.gr.getId()))
      try
      {
        AppCloudResponse localAppCloudResponse = new AppCloudResponse(new JSONObject("{code:\"400\",note:\"Object is already deleted, new one has to be created.\"}"));
        try
        {
          this.cP.handleResponse(localAppCloudResponse);
          return;
          if (FlurryAppCloud.D().getServerData().x(this.gr.getId()))
            FlurryAppCloud.D().getServerData().getObjectById(this.gr.getId());
        }
        catch (Exception localException2)
        {
          localException2.printStackTrace();
          return;
        }
      }
      catch (JSONException localJSONException)
      {
        localJSONException.printStackTrace();
        return;
      }
    try
    {
      this.cP.handleResponse(null);
      return;
    }
    catch (Exception localException1)
    {
      localException1.printStackTrace();
    }
  }
}

/* Location:           E:\android\Toy Defense 2_dex2jar.jar
 * Qualified Name:     com.flurry.android.ev
 * JD-Core Version:    0.6.2
 */